<script>
    $(document).ready(function() {

        jQuery("#formx").validate({
            submitHandler: function(form) {
                jQuery(form).ajaxSubmit({
                    target: "#beneficiarios"
                });
            }
        });
    }

)
</script>
<fieldset>
    <?php echo $this->Form->create("Candidate", array("id" => "formx", "url" => array("action" => "follow_edit", $this->data['Candidate']['id']))) ?>
    <?php echo $this->Form->hidden('Candidate.id'); ?>
    <?php echo $this->Form->input('Candidate.tipo_ident', array('label' => "Tipo identificación", 'type' => 'select', 'disabled' => 1, 'options' => array(1 => 'C.C', 2 => 'T.I'))) ?>
    <?php echo $this->Form->input('Candidate.nro_ident', array('label' => "Número identificación", 'disabled' => 1)) ?>
    <?php echo $this->Form->input('Candidate.1er_nombre', array('label' => 'Primer nombre', 'disabled' => 1)) ?>
    <?php echo $this->Form->input('Candidate.2do_nombre', array('label' => 'Segundo nombre', 'disabled' => 1)) ?>
    <?php echo $this->Form->input('Candidate.1er_apellido', array('label' => 'Primer apellido', 'disabled' => 1)) ?>
    <?php echo $this->Form->input('Candidate.2do_apellido', array('label' => 'Segundo apellido', 'disabled' => 1)) ?>
    <?php echo $this->Form->input('Candidate.telefono', array('label' => 'Teléfono')) ?>
    <?php echo $this->Form->input('Candidate.direccion', array('label' => 'Dirección')) ?>
    <?php echo $this->Form->input('Candidate.habitante', array('label' => '¿Es habitante?', 'class' => '', 'empty' => '', 'options' => array('1' => 'Si', '0' => 'No'))) ?>
    <?php echo $this->Form->input('Candidate.celular', array('label' => 'Celular')) ?>
    <?php echo $this->Form->input('Candidate.email', array('label' => 'Email')) ?>
    <br>
    <?php echo $this->Form->end(array("label" => "Guardar", "class" => "submit_button")) ?>
</fieldset>